/**
 * 
 */
package org.apache.struts2.gtgrid.views;

import java.util.Arrays;
import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts2.gtgrid.views.velocity.components.GrGridDirective;
import org.apache.struts2.gtgrid.views.velocity.components.HeadDirective;
import org.apache.struts2.views.TagLibrary;

import com.opensymphony.xwork2.util.ValueStack;

/**
 *
 *
 * @author Stevie
 * @since 2009-12-1
 * @version 1.0
 *
 */
public class GtGridTagLibrary implements TagLibrary {

	/* (non-Javadoc)
	 * @see org.apache.struts2.views.TagLibrary#getFreemarkerModels(com.opensymphony.xwork2.util.ValueStack, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
	 */
	public Object getFreemarkerModels(ValueStack valueStack, HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse) {
		// TODO Auto-generated method stub
		return null;
	}

	/* (non-Javadoc)
	 * @see org.apache.struts2.views.TagLibrary#getVelocityDirectiveClasses()
	 */
	@SuppressWarnings("unchecked")
	public List<Class> getVelocityDirectiveClasses() {
		 Class[] directives = new Class[] { HeadDirective.class, GrGridDirective.class };
	        return Arrays.asList(directives);
	}

}
